home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / misc-part1 / 3586 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.5 KB

  1. Path: soap.news.pipex.net!pipex!usenet
  2. From: m.hendry@dial.pipex.com (Mathew Hendry)
  3. Newsgroups: comp.sys.amiga.misc
  4. Subject: Re: The mystery of the lost 1 Kb ChipMem
  5. Date: Tue, 30 Jan 96 16:34:35
  6. Organization: Private node.
  7. Distribution: world
  8. Message-ID: <19960130.423F88.EFDF@an184.du.pipex.com>
  9. References: <1551.6603T740T2708@metropolis.nl>
  10. NNTP-Posting-Host: an184.du.pipex.com
  11. X-Newsreader: TIN [AMIGA 1.3 950726BETA PL0]
  12.  
  13. rbos (rbos@metropolis.nl) wrote:
  14. : When I type avail in the Shell I get the following output:
  15. : Type  Available    In-Use   Maximum   Largest
  16. : chip    1915000    181128   2096128   1907312
  17. : fast    2663384   1530920   4194304   2653936
  18. : total   4578384   1712048   6290432   2653936
  19. : Nothing strange here, or is there... When you check the maximum amount of
  20. : ChipMem availeble and divide it by 1024 (=1 Kb) you will get 2047! Since I own
  21. : a A1200 it should have been 2048 Kb of ChipMem, so where did that 1kB of
  22. : chipmem go?
  23. : When I first noticed this it didn't bother me too much, since the remaining
  24. : 2047 Kb is more then enough. But when I started to think about it, I couldn't
  25. : think of one reasoneble explenation. Here are my theories so far...
  26. : 1)      The A1200 isn't equipped with 2048 Kb, but with 2047 Kb of chipmem on
  27. :         the motherboard. This is highly unlikely, since I very much doubt it
  28. :         that memorychips of 1023,5 Kb, 511,25 Kb or even 255,125 Kb exist.
  29. : 2)      The 1 Kb is always used by some strange part of the OS. Again this is
  30. :         not very likely, because the OS uses more then one Kb and all those
  31. :         other used Kbs can be found under the 'In-Use' colomn of avail.
  32. : 3)      The 1 Kb is always used by one or more of the custom chips. This is
  33. :         the only reasoneble explenation, but why not show the missing 1 Kb
  34. :         under 'In-Use' like all the other memory useage.
  35.  
  36. Guess #2 is the closest; #1 and #3 are way off ;)
  37.  
  38. The first 1KB "page" of RAM (from $00000000 to $000003FF) is out of bounds for
  39. normal programs - it stores important CPU and OS parameters - and is not
  40. included in the system memory list.
  41.  
  42. Thus normal Chip RAM extends from $00000400 to $001FFFFF (on a machine with
  43. 2 Megs of Chip RAM). It is this range of memory that avail is showing you.
  44.  
  45. Enforcer, a development tool, protects against access to this "zero page"
  46. (amongst other areas), because it is a common for buggy programs to "hit"
  47. this area, sometimes causing nasty crashes, due to the importance of the
  48. values stored there.
  49.  
  50. So when you next hear the term "Enforcer hit", you'll know what it means :)
  51.  
  52. -- Mat.
  53.